package com.hgyc.mom.system.entity;

import java.math.BigDecimal;
import java.io.Serializable;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.*;

import com.hgyc.mom.common.annotation.Excel;
import com.hgyc.mom.core.mybatis.EQ;
import com.hgyc.mom.core.mybatis.Like;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * <p>
 * 附件
 * </p>
 *
 * @author fwj
 * @since 2025-04-27
 */
@Data
@TableName("sys_attachment")
@Schema(name="附件对象", description="附件对象")
public class SysAttachment implements Serializable
{
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @Schema(name = "附件ID")
    private Long id;

    @Excel(name = "关联的业务单据ID")
    @Schema(name = "关联的业务单据ID")
    private Long sourceDocId;

    @Excel(name = "业务单据类型")
    @Schema(name = "业务单据类型")
    private String sourceDocType;

    @Excel(name = "文件地址")
    @Schema(name = "文件地址")
    private String fileUrl;

    @Excel(name = "文件名")
    @Like
    @Schema(name = "文件名")
    private String fileName;

    @Excel(name = "文件类型")
    @EQ
    @Schema(name = "文件类型")
    private String fileType;

    @Excel(name = "文件大小")
    @Schema(name = "文件大小")
    private Long fileSize;

    @Excel(name = "备注")
    @Schema(name = "备注")
    private String remark;

    @TableField(fill = FieldFill.INSERT)
    @Schema(name = "创建者")
    private Long createBy;

    @TableField(fill = FieldFill.INSERT)
    @Schema(name = "创建时间")
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.UPDATE)
    @Schema(name = "更新者")
    private Long updateBy;

    @TableField(fill = FieldFill.UPDATE)
    @Schema(name = "更新时间")
    private LocalDateTime updateTime;

}
